/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.util.Random;

/**
 * <p>Project: jse2302 - Ex6
 * <p>Powered by webrx On 2023-06-20 09:56:04
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Ex6 {

    public static String get(){
        StringBuilder sbu = new StringBuilder();
        String[] ops = {"", "+", "-"};
        Random rand = new Random();
        sbu.append("1");
        for (int j = 2; j <= 9; j++) {
            sbu.append(ops[rand.nextInt(ops.length)] + j);
        }
        sbu.append("=");
        return sbu.toString();
    }
    public static void main(String[] args) {
        StringBuilder sbu = new StringBuilder();
        String[] ops = {"", "+", "-"};
        Random rand = new Random();
        for (int i = 0; i < 60; i++) {
            System.out.println(get());
        }

    }
}
